home *** CD-ROM | disk | FTP | other *** search
- Path: news2.EUnet.fr!enst!orfanos
- From: orfanos@ima.enst.fr
- Newsgroups: comp.lang.c++
- Subject: Re: Am I imagining auto_ptr?
- Date: 17 Feb 1996 11:17:42 GMT
- Organization: ENST - France
- Sender: orfanos@news.enst.fr (Dimitri Papadopoulos Orfanos)
- Distribution: world
- Message-ID: <4g4dgm$m65@enst.enst.fr>
- References: <3124A4D5.FF@novell.com> <3125187C.E1B@novell.com>
- NNTP-Posting-Host: mathieu-2.enst.fr
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
-
-
- In article <3125187C.E1B@novell.com>,
- Jeff Robison <jeffr@novell.com> writes:
- > It seems like I recently read or heard or dreamed about a new
- > keyword/type/whatever in the C++ draft standard called an auto_ptr.
- > I believe it will automatically delete its contents when it goes
- > out of scope. Something like this would be incredibly useful when
- > handling (or rather not having to handle) exceptions.
- >
- > Am I imagining things, or does such a beast exist? If it does exist,
- > can you point me to some syntax/usage documentation?
-
- You can find an implementation of auto_ptr in Scott Meyers'
- "More Effective C++: 35 New Ways to Improve Your Programs and
- Designs", Addison-Wesley, 1996, ISBN 0-201-63371-X
-
- 'auto_ptr' is already in the draft standard. It is not yet
- implemented in most compilers. It is very useful indeed
- with exceptions.
-
- The above implementation can be downloaded from:
- http://aw.com/cp/mec++-appendix.html
-
- --
- Dimitri Papadopoulos
- orfanos@ima.enst.fr
-